package com.yuda.operationcenter.service.impl;

import com.yuda.operationcenter.domain.OperProvince;
import com.yuda.operationcenter.domain.OperSite;
import com.yuda.operationcenter.domain.OperSiteParam;
import com.yuda.operationcenter.mapper.OperSiteMapper;
import com.yuda.operationcenter.service.OperSiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashSet;
import java.util.List;

/*
* 考点资质申请
* @Param 筛选考点信息
* */
@Service
public class OperSiteServiceImpl implements OperSiteService {
    @Autowired
    OperSiteMapper operSelectSiteMapper;

    //查询考点资质信息
    @Override
    public List<OperSite> selectSite(OperSiteParam param) {
        return operSelectSiteMapper.selectSite(param);
    }

    //删除考点资质申请
    @Override
    public int deleteSite(Integer id) {
        return operSelectSiteMapper.deleteSite(id);
    }

    //批量删除考点资质申请
    @Override
    public int deleteSiteMore(Integer[] ids) {
        return operSelectSiteMapper.deleteSiteMore(ids);
    }

    @Override
    public HashSet<OperProvince> selectProvinceName() {
        return operSelectSiteMapper.selectProvinceName();
    }

    @Override
    public HashSet<String> selectCityName(String provinceId) {
        return operSelectSiteMapper.selectCityName(provinceId);
    }

}

